<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>回复列表</title>
    <link rel="stylesheet" type="text/css" href="../css/replies.css">
    <script src="../webjars/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
    <div id="all">
        <h2>${replies.title}</h2>
        <p>发布于：${replies.reporttime?string("yyyy-MM-dd HH:mm:ss")}</p>
        <p>${replies.content}</p>
        <h3>读者回应</h3>
        <div id="content">
            <#if replies.replies?size gt 1>
                <#list replies.replies as r>
                    <p class="rep">
                        ${r.replytime?string("yyyy-MM-dd HH:mm:ss")} <br>
                        ${r.content}
                    </p>
                </#list>
            <#else>
                <p id="null" style="color: red">还没有回复哦~ <br> 您可以抢沙发哦！</p>
            </#if>
        </div>
        <p>
            发表回复：<span id="msg">（你还可写200字）</span><br>
            <textarea id="texta" style="font-family: 方正粗黑宋简体"></textarea> <br>
            <input disabled type="button" onclick="sub(${replies.id})" value="发表回复" id="btn">
            &emsp;
            &emsp;
            <a href="../home">返回首页</a>
        </p>
    </div>
</body>
<script type="text/javascript" rel="script" src="../js/replies.js"></script>
</html>